import pytest
import os

if __name__ == '__main__':
    # pytest.main()
    # pytest.main(['-vs', 'test_calc.py'])
    # pytest.main(['-vs', r'D:\HongRuan-Work\Python\PythonProject\0222'])
    # pytest.main(['-vs', 'test_calc.py::TestCalc::test_add02'])
    # pytest.main(['-vs','test_calc.py','--html=加法测试报告.html'])
    pytest.main(['-vs','test_calc.py','--alluredir=./json_report']) # 生成json格式的测试报告
    os.system('allure generate ./json_report -o ./html_report')



















